package com.lzc.tlmail.tlmailproduct.dao;

import com.lzc.tlmail.tlmailproduct.entity.AttrAttrgroupRelationEntity;
import com.lzc.tlmail.tlmailproduct.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzc.tlmail.tlmailproduct.vo.AttrattrgrouprelationVo;
import com.lzc.tlmail.tlmailproduct.vo.SkuItemVo;
import com.lzc.tlmail.tlmailproduct.vo.SpuBaseGroupAttrVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author lzc
 * @email 1029669636@gmail.com
 * @date 2020-07-25 21:23:58
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {
    /**
     * 删除属性分组和属性关联关系
     * @param attrattrgrouprelationVo
     */
    void removeRelation(@Param("attrattrgrouprelation") List<AttrAttrgroupRelationEntity> attrattrgrouprelationVo);

    List<SpuBaseGroupAttrVo> getAttrGroupAndAttrBySpuId(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
